package com.ldap.demo.dao;

import com.ldap.demo.domain.Person;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface PersonRepository extends CrudRepository<Person, Long> {
    List<Person> findByLastname(String lastname);

    List<Person> findByLastnameFirstname(String lastname, String firstname);

}
